package org.smr.dev.web;

import org.smr.dev.model.TableMeta;
import org.smr.dev.service.TableMeteService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

 import jakarta.annotation.Resource;import java.util.List;

@Controller
@RequestMapping("column")
public class TableColumnController {


    @Resource
    private TableMeteService tableMeteService;

    @RequestMapping("list")
    public String getTableInfo(String tableName, String schema , Model model){
        List<TableMeta> tableMetaList =  tableMeteService.findColumn("t_organ_info", "auth_center");
        model.addAttribute("list", tableMetaList);
        return "/column/column-index";
    }

}
